/**
 * 
 */
package org.softTank.BC.rs.resource;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.softTank.BC.manager.OperationManager;
import org.softTank.BC.rs.bean.ParameterBean;

/**
 * @author Yuzone
 *
 */
public class OperationResource {

	private String serviceId;

	public OperationResource() {
	}

	public OperationResource(String serviceID) {
		serviceId = serviceID;
	}

	@GET
	@Path("{operation}")
	@Produces(MediaType.APPLICATION_XML)
	public List<ParameterBean> getParameters(
			@PathParam("operation") String operation) {
		return new OperationManager().getParameterBean(serviceId, operation);
	}
}
